package com.meeting.meetingroom_api.dto;

import com.meeting.meetingroom_api.enums.MeetingRoomType;
import lombok.Data;
import jakarta.validation.constraints.*; // For validation
import java.math.BigDecimal;
import java.time.LocalTime;

@Data
public class MeetingRoomCreateDto {
    @NotBlank(message = "会议室名称不能为空")
    private String name;

    @NotNull(message = "会议室类型不能为空")
    private MeetingRoomType type;

    @NotNull(message = "容量不能为空")
    @Min(value = 1, message = "容量至少为1人")
    private Integer capacity;

    @NotNull(message = "面积不能为空")
    @DecimalMin(value = "0.1", message = "面积必须大于0")
    private Double area;

    private Boolean hasProjector;

    private Boolean hasSpeaker;

    private Boolean hasNetwork;

    private Boolean hasMicrophone;

    private Boolean hasWhiteboard;

    @NotNull(message = "价格不能为空")
    @DecimalMin(value = "0.01", message = "价格必须大于0")
    private BigDecimal pricePerHour;

    private LocalTime operatingStartTime; // Default will be set if null
    private LocalTime operatingEndTime;   // Default will be set if null
    private String description;
}